package be.kdg.componenten.chatters;

import java.rmi.server.UnicastRemoteObject;
import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 * Created by IntelliJ IDEA.
 * User: Tom
 * Date: 13-jan-2009
 * Time: 11:23:18
 * To change this template use File | Settings | File Templates.
 */
public interface Chatter extends Remote {

    public String getName()  throws RemoteException;

    public void register(Chatter chatter) throws RemoteException;

    public void unregister(Chatter chatter) throws RemoteException;

    public void send(String text) throws RemoteException;

    public void receive(String name, String text) throws RemoteException;

    public Chatters getChatters() throws RemoteException;
}
